package com.subang.function.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.subang.common.annotation.Excel;
import com.subang.common.core.domain.BaseEntity;

/**
 * 文章对象 sb_article
 * 
 * @author subei
 * @date 2025-03-13
 */
public class SbArticle extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 作者id */
    @Excel(name = "作者id")
    private Long authorId;

    /** 栏目id */
    @Excel(name = "栏目id")
    private Long channelId;

    /** 轮播状态（0否，1是） */
    @Excel(name = "轮播状态", readConverterExp = "0=否，1是")
    private Long slider;

    /** 收藏数(默认为0为推荐，1是推荐) */
    @Excel(name = "收藏数(默认为0为推荐，1是推荐)")
    private Long favors;

    /** 推荐状态 */
    @Excel(name = "推荐状态")
    private Long featured;

    /** 文章状态 */
    @Excel(name = "文章状态")
    private Long status;

    /** 摘要 */
    @Excel(name = "摘要")
    private String summary;

    /** 文章标题 */
    @Excel(name = "文章标题")
    private String title;

    /** 文章封面 */
    @Excel(name = "文章封面")
    private String cover;

    /** 内容 */
    @Excel(name = "内容")
    private String content;

    /** 附件 */
    @Excel(name = "附件")
    private String attachment;

    /** 附件名称 */
    @Excel(name = "附件名称")
    private String attachmentName;

    /** 查看次数 */
    @Excel(name = "查看次数")
    private Long views;

    /** 点赞次数 */
    @Excel(name = "点赞次数")
    private String likes;

    private String orderBy;

    private Long isRecommend;

    private Long myCollect;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setAuthorId(Long authorId) 
    {
        this.authorId = authorId;
    }

    public Long getAuthorId() 
    {
        return authorId;
    }

    public void setChannelId(Long channelId) 
    {
        this.channelId = channelId;
    }

    public Long getChannelId() 
    {
        return channelId;
    }

    public void setSlider(Long slider) 
    {
        this.slider = slider;
    }

    public Long getSlider() 
    {
        return slider;
    }

    public void setFavors(Long favors) 
    {
        this.favors = favors;
    }

    public Long getFavors() 
    {
        return favors;
    }

    public void setFeatured(Long featured) 
    {
        this.featured = featured;
    }

    public Long getFeatured() 
    {
        return featured;
    }

    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    public void setSummary(String summary) 
    {
        this.summary = summary;
    }

    public String getSummary() 
    {
        return summary;
    }

    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }

    public void setCover(String cover) 
    {
        this.cover = cover;
    }

    public String getCover() 
    {
        return cover;
    }

    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }

    public void setAttachment(String attachment) 
    {
        this.attachment = attachment;
    }

    public String getAttachment() 
    {
        return attachment;
    }

    public void setAttachmentName(String attachmentName) 
    {
        this.attachmentName = attachmentName;
    }

    public String getAttachmentName() 
    {
        return attachmentName;
    }

    public void setViews(Long views) 
    {
        this.views = views;
    }

    public Long getViews() 
    {
        return views;
    }

    public void setLikes(String likes) 
    {
        this.likes = likes;
    }

    public String getLikes() 
    {
        return likes;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("authorId", getAuthorId())
            .append("channelId", getChannelId())
            .append("createTime", getCreateTime())
            .append("slider", getSlider())
            .append("favors", getFavors())
            .append("featured", getFeatured())
            .append("status", getStatus())
            .append("summary", getSummary())
            .append("title", getTitle())
            .append("cover", getCover())
            .append("content", getContent())
            .append("attachment", getAttachment())
            .append("attachmentName", getAttachmentName())
            .append("views", getViews())
            .append("likes", getLikes())
            .append("updateTime", getUpdateTime())
            .toString();
    }

    public String getOrderBy() {
        return orderBy;
    }

    public void setOrderBy(String orderBy) {
        this.orderBy = orderBy;
    }

    public Long getIsRecommend() {
        return isRecommend;
    }

    public void setIsRecommend(Long isRecommend) {
        this.isRecommend = isRecommend;
    }

    public Long getMyCollect() {
        return myCollect;
    }

    public void setMyCollect(Long myCollect) {
        this.myCollect = myCollect;
    }
}
